package com.yl.chainStore.mapper.pay

import com.yl.chainStore.entity.pay.PayCustomerBalanceToMoneyLog
import com.baomidou.mybatisplus.core.mapper.BaseMapper
import com.yl.chainStore.pojo.dto.statistical.PaySumMoneyForDayDto
import com.yl.chainStore.pojo.dto.statistical.StatisticalBalanceInLogByTypeDto
import com.yl.chainStore.pojo.vo.statistical.IncomeSummarySelectVo
import com.yl.chainStore.pojo.vo.statistical.ReconciliationSelectVo
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

/**
 * <p>
 * 客户余额退款记录 Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2021-11-25
 */
@Mapper
interface PayCustomerBalanceToMoneyLogMapper : BaseMapper<PayCustomerBalanceToMoneyLog>{

	/**
	 * 按付款类型查询付款记录
	 */
	fun selectLogGroupByPayType( @Param("vo")vo: IncomeSummarySelectVo):List<StatisticalBalanceInLogByTypeDto>

	/**
	 * 按日期查询退款记录
	 */
	fun refundSumMoneyByDay(@Param("vo")vo: ReconciliationSelectVo): List<PaySumMoneyForDayDto>
}
